Skip to content

upcoming: [M3-10238] - Review nodebalancers validation schemas#12421

Merged
harsh-akamai merged 9 commits intolinode:developfrom
harsh-akamai:M3-10238-review-nb-dual-stack-validaion-schemas
Jul 3, 2025
Merged

upcoming: [M3-10238] - Review nodebalancers validation schemas#12421
harsh-akamai merged 9 commits intolinode:developfrom
harsh-akamai:M3-10238-review-nb-dual-stack-validaion-schemas

Conversation

@harsh-akamai
Copy link
Contributor

Description 📝

Update validation schemas for the changes in POST and PUT endpoints of /v4/nodebalancers & /v4/nodebalancers/configs/{configdId}/nodes for NodeBalancer Dual Stack Support

How to test 🧪

Verification steps

  • Verify the changes match the APISpec linked in the parent ticket
Author Checklists

As an Author, to speed up the review process, I considered 🤔

👀 Doing a self review
❔ Our contribution guidelines
🤏 Splitting feature into small PRs
➕ Adding a changeset
🧪 Providing/improving test coverage
🔐 Removing all sensitive information from the code and PR description
🚩 Using a feature flag to protect the release
👣 Providing comprehensive reproduction steps
📑 Providing or updating our documentation
🕛 Scheduling a pair reviewing session
📱 Providing mobile support
♿ Providing accessibility support


  • I have read and considered all applicable items listed above.

As an Author, before moving this PR from Draft to Open, I confirmed ✅

  • All unit tests are passing
  • TypeScript compilation succeeded without errors
  • Code passes all linting rules

…ts /v4/nodebalancers & /v4/nodebalancers/configs/{configId}/nodes for NB Dual Stack Support
@harsh-akamai harsh-akamai added the NB Dual Stack (IPv6) Relating to NodeBalancer Dual Stack Support label Jun 24, 2025
@harsh-akamai harsh-akamai marked this pull request as ready for review June 30, 2025 06:02
@harsh-akamai harsh-akamai requested a review from a team as a code owner June 30, 2025 06:02
@harsh-akamai harsh-akamai requested review from hasyed-akamai and pmakode-akamai and removed request for a team June 30, 2025 06:02
@hasyed-akamai hasyed-akamai added the Add'tl Approval Needed Waiting on another approval! label Jul 1, 2025
Comment on lines 62 to 70
if (isIPv4) {
if (!PRIVATE_IPV4_REGEX.test(value)) {
return this.createError({
message: PRIVATE_IPV4_WARNING,
});
} else {
return true;
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (isIPv4) {
if (!PRIVATE_IPV4_REGEX.test(value)) {
return this.createError({
message: PRIVATE_IPV4_WARNING,
});
} else {
return true;
}
}
if (isIPv4) {
if (!PRIVATE_IPV4_REGEX.test(value)) {
return this.createError({
message: PRIVATE_IPV4_WARNING,
});
}
return true;
}

optional nit: We can remove the unnecessary else block to make it a bit cleaner

@github-project-automation github-project-automation bot moved this from Review to Approved in Cloud Manager Jul 2, 2025
@linode-gh-bot
Copy link
Collaborator

Cloud Manager UI test results

🔺 1 failing test on test run #7 ↗︎

❌ Failing✅ Passing↪️ Skipped🕐 Duration
1 Failing669 Passing4 Skipped123m 19s

Details

Failing Tests
SpecTest
lke-create.spec.tsCloud Manager Cypress Tests→LKE Cluster Creation with LKE-E→shows the LKE-E flow with the feature flag on » LKE Cluster Creation with LKE-E→shows the LKE-E flow with the feature flag on

Troubleshooting

Use this command to re-run the failing tests:

pnpm cy:run -s "cypress/e2e/core/kubernetes/lke-create.spec.ts"

@harsh-akamai harsh-akamai merged commit 11e8867 into linode:develop Jul 3, 2025
34 of 35 checks passed
@github-project-automation github-project-automation bot moved this from Approved to Merged in Cloud Manager Jul 3, 2025
@harsh-akamai harsh-akamai deleted the M3-10238-review-nb-dual-stack-validaion-schemas branch July 3, 2025 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Add'tl Approval Needed Waiting on another approval! NB Dual Stack (IPv6) Relating to NodeBalancer Dual Stack Support

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants